﻿<UserControl x:Class="Microsoft.Kinect.Toolkit.KinectSensorChooserUI"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"
             d:DesignWidth="228" d:DesignHeight="160">
    <UserControl.Resources>
        <SolidColorBrush x:Key="purpleBrush" Color="#FF52318F" />
        <SolidColorBrush x:Key="blueBrush" Color="#FF00BCF2" />
        <SolidColorBrush x:Key="yellowErrorBrush" Color="#FFFCEE1E" />
        <SolidColorBrush x:Key="lightGreyBrush" Color="#FFD2D2D2" />
        <SolidColorBrush x:Key="mediumGreyBrush" Color="#FF969696" />
        <SolidColorBrush x:Key="darkGreyBrush" Color="#FF505050" />

        <Style x:Key="smallStatusGridGtyle" TargetType="{x:Type Grid}">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="Visibility" Value="Hidden"/>
        </Style>

        <Style x:Key="pathContainerStyle" TargetType="{x:Type Grid}">
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="VerticalAlignment" Value="Bottom" />
            <Setter Property="Margin" Value="0,0,0,5" />
        </Style>

        <Style x:Key="expandedStatusGridGtyle" TargetType="{x:Type Grid}">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="Visibility" Value="Hidden"/>
            <Setter Property="HorizontalAlignment" Value="Stretch"/>
            <Setter Property="VerticalAlignment" Value="Stretch"/>
        </Style>

        <Style x:Key="RefreshButtonStyle" TargetType="{x:Type Button}">
            <Setter Property="Template" Value="{DynamicResource RefreshButtonTemplate}"/>
            <Setter Property="FontSize" Value="10.667"/>
            <Setter Property="Foreground" Value="White"/>
            <Style.Triggers>
                <Trigger Property="IsEnabled" Value="False">
                    <Setter Property="Visibility" Value="Collapsed" />
                </Trigger>
            </Style.Triggers>
        </Style>

        <ControlTemplate x:Key="RefreshButtonTemplate" TargetType="{x:Type ButtonBase}">
            <StackPanel Background="Transparent">
                <Grid HorizontalAlignment="Center">
                    <Path Fill="{TemplateBinding Foreground}" Data="F1 M 11.991,0.000 C 9.454,0.000 6.895,0.803 4.722,2.461 C -0.550,6.482 -1.558,14.011 2.461,19.280 C 4.821,22.374 8.395,24.000 12.010,24.000 C 14.548,24.000 17.106,23.198 19.280,21.541 C 24.549,17.522 25.558,9.991 21.540,4.720 C 19.177,1.626 15.605,0.000 11.991,0.000 M 11.992,1.588 L 11.991,1.588 C 15.270,1.588 18.290,3.081 20.276,5.684 C 23.759,10.250 22.880,16.797 18.317,20.277 C 16.487,21.673 14.305,22.412 12.010,22.412 C 8.729,22.412 5.709,20.919 3.724,18.316 C 2.037,16.105 1.312,13.370 1.682,10.614 C 2.052,7.858 3.474,5.411 5.686,3.724 C 7.515,2.327 9.696,1.588 11.992,1.588"/>
                    <Path Fill="{TemplateBinding Foreground}" Data="F1 M 15.030,9.356 L 11.993,9.510 L 13.431,10.937 L 17.534,10.846 L 17.534,10.849 L 17.534,10.846 L 17.536,10.848 L 17.534,10.846 L 17.587,6.743 L 16.149,5.319 L 16.018,8.354"/>
                    <Path Fill="{TemplateBinding Foreground}" Data="F1 M 8.607,11.368 L 6.413,11.342 C 7.114,7.714 10.219,5.895 13.292,6.490 C 14.979,6.816 16.413,7.872 17.223,9.389 L 15.455,10.335 C 14.930,9.353 14.002,8.671 12.911,8.458 C 10.923,8.075 8.992,9.379 8.607,11.368"/>
                    <Path Fill="{TemplateBinding Foreground}" Data="F1 M 9.003,14.643 L 12.040,14.488 L 10.602,13.063 L 6.498,13.154 L 6.498,13.152 L 6.498,13.154 L 6.495,13.153 L 6.498,13.154 L 6.444,17.258 L 7.883,18.681 L 8.014,15.647"/>
                    <Path Fill="{TemplateBinding Foreground}" Data="F1 M 10.644,17.580 C 8.954,17.252 7.519,16.195 6.708,14.673 L 8.479,13.730 C 9.002,14.713 9.932,15.398 11.024,15.609 C 13.015,15.996 14.946,14.689 15.331,12.700 L 17.587,12.722 C 16.911,16.217 13.719,18.174 10.644,17.580"/>
                </Grid>
                <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
            </StackPanel>
            <ControlTemplate.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Foreground" Value="{StaticResource blueBrush}"/>
                </Trigger>
                <Trigger Property="IsPressed"  Value="True">
                    <Setter Property="Foreground" Value="{StaticResource mediumGreyBrush}"/>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>
        
    </UserControl.Resources>

    <Grid x:Name="layoutRoot" MouseEnter="OnRootGridMouseEnter" GotKeyboardFocus="OnRootGridGotKeyboardFocus" Focusable="True" Width="40" Height="40" HorizontalAlignment="Center" VerticalAlignment="Top">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="SensorStatusStates">
                <VisualStateGroup.Transitions>
                    <VisualTransition GeneratedDuration="0" To="AllSetNotListening">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="allSetNotListeningContent">
                                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
                                <EasingDoubleKeyFrame KeyTime="0:0:2" Value="1"/>
                                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="allSetNotListeningContent">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.3" Value="{x:Static Visibility.Visible}"/>
                                <DiscreteObjectKeyFrame KeyTime="0:0:3" Value="{x:Static Visibility.Hidden}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="expandedAllSetNotListeningContent">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.3" Value="{x:Static Visibility.Visible}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="expandedAllSetNotListeningContent">
                                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
                                <EasingDoubleKeyFrame KeyTime="0:0:2" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualTransition>
                    <VisualTransition GeneratedDuration="0" To="Error">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="expandedErrorContent">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Visible}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="expandedErrorContent">
                                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="errorContent">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Visible}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="errorContent">
                                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualTransition>
                    <VisualTransition From="Error" GeneratedDuration="0">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="errorContent">
                                <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="errorContent">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Hidden}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="expandedErrorContent">
                                <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="expandedErrorContent">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Hidden}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualTransition>
                    <VisualTransition GeneratedDuration="0" To="AllSetListening">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="allSetListeningContent">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                                <DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Visible}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="allSetListeningContent">
                                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="expandedAllSetListeningContent">
                            	<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="expandedAllSetListeningContent">
                            	<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                            	<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualTransition>
                    <VisualTransition GeneratedDuration="0" To="NoAvailableSensors">
                    	<Storyboard>
                    		<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="noAvailableSensorsContent">
                    			<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                    		</ObjectAnimationUsingKeyFrames>
                    		<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="noAvailableSensorsContent">
                    			<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                    			<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/>
                    		</DoubleAnimationUsingKeyFrames>
                    		<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="expandedNoAvailableSensorsContent">
                    			<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                    		</ObjectAnimationUsingKeyFrames>
                    		<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="expandedNoAvailableSensorsContent">
                    			<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                    			<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/>
                    		</DoubleAnimationUsingKeyFrames>
                    	</Storyboard>
                    </VisualTransition>
                    <VisualTransition From="NoAvailableSensors" GeneratedDuration="0">
                    	<Storyboard>
                    		<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="expandedNoAvailableSensorsContent">
                    			<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
                    		</DoubleAnimationUsingKeyFrames>
                    		<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="expandedNoAvailableSensorsContent">
                    			<DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Hidden}"/>
                    		</ObjectAnimationUsingKeyFrames>
                    		<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="noAvailableSensorsContent">
                    			<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
                    		</DoubleAnimationUsingKeyFrames>
                    		<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="noAvailableSensorsContent">
                    			<DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Hidden}"/>
                    		</ObjectAnimationUsingKeyFrames>
                    	</Storyboard>
                    </VisualTransition>
                    <VisualTransition From="AllSetListening" GeneratedDuration="0">
                    	<Storyboard>
                    		<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="expandedAllSetListeningContent">
                    			<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
                    		</DoubleAnimationUsingKeyFrames>
                    		<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="expandedAllSetListeningContent">
                    			<DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Hidden}"/>
                    		</ObjectAnimationUsingKeyFrames>
                    		<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="allSetListeningContent">
                    			<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
                    		</DoubleAnimationUsingKeyFrames>
                    		<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="allSetListeningContent">
                    			<DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Hidden}"/>
                    		</ObjectAnimationUsingKeyFrames>
                    	</Storyboard>
                    </VisualTransition>
                    <VisualTransition GeneratedDuration="0" To="Initializing">
                    	<Storyboard>
                    		<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="initializingContent">
                    			<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                    			<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/>
                    		</DoubleAnimationUsingKeyFrames>
                    		<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="expandedInitializingContent">
                    			<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                    			<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/>
                    		</DoubleAnimationUsingKeyFrames>
                    		<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="initializingContent">
                    			<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                    		</ObjectAnimationUsingKeyFrames>
                    		<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="expandedInitializingContent">
                    			<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                    		</ObjectAnimationUsingKeyFrames>
                    	</Storyboard>
                    </VisualTransition>
                    <VisualTransition From="Initializing" GeneratedDuration="0">
                    	<Storyboard>
                    		<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="initializingContent">
                    			<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
                    		</DoubleAnimationUsingKeyFrames>
                    		<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="expandedInitializingContent">
                    			<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
                    		</DoubleAnimationUsingKeyFrames>
                    		<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="initializingContent">
                    			<DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Hidden}"/>
                    		</ObjectAnimationUsingKeyFrames>
                    		<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="expandedInitializingContent">
                    			<DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Hidden}"/>
                    		</ObjectAnimationUsingKeyFrames>
                    	</Storyboard>
                    </VisualTransition>
                </VisualStateGroup.Transitions>
                <VisualState x:Name="Stopped"/>
                <VisualState x:Name="Initializing">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="initializingContent">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="expandedInitializingContent">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="AllSetListening">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="allSetListeningContent">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="expandedAllSetListeningContent">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="NoAvailableSensors">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="noAvailableSensorsContent">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="expandedNoAvailableSensorsContent">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="Error">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="errorContent">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="expandedErrorContent">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="AllSetNotListening">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="allSetNotListeningContent">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="expandedAllSetNotListeningContent">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>

        <Grid x:Name="initializingContent" Style="{StaticResource smallStatusGridGtyle}" Background="{StaticResource lightGreyBrush}">
            <Grid Style="{StaticResource pathContainerStyle}">
                <Path Data="F1 M 12.998,6.278 C 14.367,6.545 15.607,7.183 16.602,8.106 L 11.160,8.382 L 14.037,11.235 L 22.242,11.054 L 22.350,2.847 L 19.473,0.000 L 19.253,5.095 C 17.730,3.706 15.843,2.744 13.760,2.341 C 7.613,1.150 1.404,4.790 0.000,12.046 L 4.391,12.097 C 5.160,8.120 9.021,5.511 12.998,6.278 Z">
                    <Path.Fill>
                        <RadialGradientBrush MappingMode="Absolute" GradientOrigin="313.146,-385.129" Center="313.146,-385.129" RadiusX="16.356" RadiusY="16.356">
                            <RadialGradientBrush.GradientStops>
                                <GradientStop Offset="0.00" Color="#ffffffff"/>
                                <GradientStop Offset="0.36" Color="#ffffffff"/>
                                <GradientStop Offset="0.53" Color="#ffffffff"/>
                                <GradientStop Offset="0.73" Color="#ffffffff"/>
                                <GradientStop Offset="0.94" Color="#ffffffff"/>
                            </RadialGradientBrush.GradientStops>
                            <RadialGradientBrush.Transform>
                                <MatrixTransform Matrix="1.000,0.000,-0.000,-1.000,-295.639,-382.415" />
                            </RadialGradientBrush.Transform>
                        </RadialGradientBrush>
                    </Path.Fill>
                </Path>
                <Path Data="F1 M 9.352,20.511 C 7.983,20.246 6.742,19.607 5.748,18.683 L 11.189,18.408 L 8.313,15.554 L 0.107,15.736 L 0.000,23.943 L 2.877,26.791 L 3.097,21.695 C 4.620,23.083 6.507,24.046 8.590,24.449 C 14.736,25.640 20.945,22.000 22.350,14.744 L 17.959,14.693 C 17.189,18.669 13.328,21.279 9.352,20.511 Z">
                    <Path.Fill>
                        <RadialGradientBrush MappingMode="Absolute" GradientOrigin="-658.202,2109.564" Center="-658.202,2109.564" RadiusX="16.357" RadiusY="16.357">
                            <RadialGradientBrush.GradientStops>
                                <GradientStop Offset="0.00" Color="#ffffffff"/>
                                <GradientStop Offset="0.36" Color="#ffffffff"/>
                                <GradientStop Offset="0.53" Color="#ffffffff"/>
                                <GradientStop Offset="0.73" Color="#ffffffff"/>
                                <GradientStop Offset="0.94" Color="#ffffffff"/>
                            </RadialGradientBrush.GradientStops>
                            <RadialGradientBrush.Transform>
                                <MatrixTransform Matrix="-1.000,0.000,0.000,1.000,-653.360,-2085.489" />
                            </RadialGradientBrush.Transform>
                        </RadialGradientBrush>
                    </Path.Fill>
                </Path>
            </Grid>
        </Grid>
        <Grid  x:Name="allSetNotListeningContent" Style="{StaticResource smallStatusGridGtyle}" Background="{StaticResource purpleBrush}">
            <Grid Style="{StaticResource pathContainerStyle}">
                <Path Fill="#ffffffff" Data="F1 M 7.749,4.152 C 7.094,4.152 6.563,3.623 6.563,2.968 C 6.563,2.314 7.094,1.783 7.749,1.783 C 8.402,1.783 8.933,2.314 8.933,2.968 C 8.933,3.623 8.402,4.152 7.749,4.152 Z M 13.817,4.152 C 13.162,4.152 12.632,3.623 12.632,2.968 C 12.632,2.314 13.162,1.783 13.817,1.783 C 14.473,1.783 15.001,2.314 15.001,2.968 C 15.001,3.623 14.473,4.152 13.817,4.152 Z M 18.185,4.152 C 17.529,4.152 16.999,3.623 16.999,2.968 C 16.999,2.314 17.529,1.783 18.185,1.783 C 18.837,1.783 19.369,2.314 19.369,2.968 C 19.369,3.623 18.837,4.152 18.185,4.152 Z M 30.059,0.000 L 1.940,0.000 C 0.875,0.000 0.000,0.873 0.000,1.941 L 0.000,3.996 C 0.000,5.062 0.875,5.935 1.940,5.935 L 30.059,5.935 C 31.126,5.935 32.000,5.062 32.000,3.996 L 32.000,1.941 C 32.000,0.873 31.126,0.000 30.059,0.000 Z"/>
                <Path Fill="#ffffffff" Data="F1 M 20.437,8.683 C 20.031,8.509 16.960,7.454 16.960,7.454 L 15.023,7.454 C 15.023,7.454 11.952,8.509 11.543,8.683 C 11.137,8.856 10.894,8.940 10.979,9.245 C 11.034,9.444 11.168,9.916 11.312,10.315 C 11.378,10.506 11.475,10.634 11.667,10.634 C 11.770,10.634 20.213,10.634 20.316,10.634 C 20.507,10.634 20.603,10.506 20.671,10.315 C 20.814,9.916 20.950,9.444 21.005,9.245 C 21.089,8.940 20.847,8.856 20.437,8.683 Z"/>
            </Grid>
        </Grid>
        <Grid x:Name="allSetListeningContent" Style="{StaticResource smallStatusGridGtyle}" Background="{StaticResource blueBrush}">
            <Grid Style="{StaticResource pathContainerStyle}">
                <Path Fill="#ffffffff" Data="F1 M 5.880,14.295 C 3.545,14.295 1.649,12.397 1.649,10.065 C 1.649,9.605 1.282,9.238 0.823,9.238 C 0.365,9.238 0.000,9.605 0.000,10.065 C 0.000,13.040 2.189,15.476 5.055,15.889 L 5.055,19.576 L 3.232,19.576 C 2.774,19.576 2.406,19.959 2.406,20.400 C 2.406,20.860 2.774,21.242 3.232,21.242 L 8.512,21.242 C 8.971,21.242 9.338,20.860 9.338,20.400 C 9.338,19.959 8.971,19.576 8.512,19.576 L 6.708,19.576 L 6.708,15.889 C 9.557,15.476 11.764,13.040 11.764,10.065 C 11.764,9.605 11.397,9.238 10.938,9.238 C 10.481,9.238 10.112,9.605 10.112,10.065 C 10.112,12.397 8.219,14.295 5.883,14.295 M 9.098,10.372 C 8.930,12.009 7.557,13.289 5.883,13.289 L 5.880,13.289 C 4.189,13.289 2.831,12.009 2.646,10.372 L 4.352,10.372 L 4.352,8.721 L 2.617,8.721 L 2.617,8.469 L 2.617,7.528 L 4.352,7.528 L 4.352,5.860 L 2.617,5.860 L 2.617,4.666 L 4.352,4.666 L 4.352,3.016 L 2.643,3.016 C 2.770,1.341 4.159,0.000 5.881,0.000 C 7.586,0.000 8.977,1.341 9.104,3.016 L 7.413,3.016 L 7.413,4.666 L 9.147,4.666 L 9.147,5.860 L 7.413,5.860 L 7.413,7.528 L 9.147,7.528 L 9.147,8.469 L 9.147,8.721 L 7.413,8.721 L 7.413,10.372 L 9.098,10.372 Z"/>
            </Grid>
        </Grid>
        <Grid x:Name="noAvailableSensorsContent" Style="{StaticResource smallStatusGridGtyle}" Background="{StaticResource darkGreyBrush}">
            <Grid Style="{StaticResource pathContainerStyle}">
                <Path Fill="{StaticResource yellowErrorBrush}" Data="F1 M 14.800,13.834 C 14.216,14.163 13.861,14.781 13.861,15.440 L 13.857,16.161 L 12.021,16.161 L 12.021,15.440 C 12.021,14.143 12.734,12.919 13.858,12.243 C 14.480,11.917 14.873,11.288 14.873,10.583 C 14.873,9.571 14.023,8.723 12.988,8.723 C 11.975,8.723 11.125,9.571 11.125,10.583 L 11.125,10.804 L 9.285,10.804 L 9.285,10.583 C 9.285,8.549 10.952,6.884 12.988,6.884 C 15.048,6.884 16.714,8.549 16.714,10.583 C 16.714,11.926 15.979,13.163 14.800,13.834 Z M 13.781,19.073 C 13.541,19.311 13.259,19.409 12.939,19.409 C 12.620,19.409 12.338,19.311 12.121,19.073 C 11.882,18.856 11.762,18.577 11.762,18.261 C 11.762,17.941 11.882,17.658 12.121,17.418 C 12.338,17.204 12.621,17.084 12.939,17.084 C 13.259,17.084 13.541,17.204 13.779,17.418 C 13.998,17.659 14.118,17.942 14.118,18.261 C 14.118,18.575 13.998,18.856 13.781,19.073 Z M 12.988,0.000 L 0.000,21.253 L 12.988,21.253 L 26.000,21.253 L 12.988,0.000 Z"/>
            </Grid>
        </Grid>
        <Grid x:Name="errorContent" Style="{StaticResource smallStatusGridGtyle}" Background="{StaticResource darkGreyBrush}">
            <Grid Style="{StaticResource pathContainerStyle}">
                <Path Fill="{StaticResource yellowErrorBrush}" Data="F1 M 12.992,18.767 C 12.586,18.767 12.223,18.634 11.945,18.394 C 11.695,18.126 11.555,17.819 11.555,17.473 C 11.555,17.079 11.695,16.769 11.979,16.519 C 12.234,16.288 12.596,16.165 12.992,16.165 C 13.420,16.165 13.760,16.291 14.033,16.544 C 14.308,16.774 14.443,17.083 14.443,17.473 C 14.443,17.831 14.313,18.139 14.041,18.398 C 13.795,18.637 13.432,18.767 12.992,18.767 Z M 14.303,7.252 L 13.995,15.069 L 11.979,15.069 L 11.685,7.252 L 14.303,7.252 Z M 12.988,0.000 L 0.000,21.254 L 12.988,21.254 L 26.000,21.254 L 12.988,0.000 Z"/>
            </Grid>
        </Grid>

        <Popup x:Name="expandedPopup" AllowsTransparency="True" PopupAnimation="Fade" Opened="ExpandedPopupOnOpened" MouseLeave="OnExpandedPopupMouseLeave" Placement="Center" PlacementTarget="{Binding ElementName=layoutRoot}" Width="300">
            <Grid x:Name="popupGrid" Background="{StaticResource darkGreyBrush}" Focusable="True"  GotKeyboardFocus="OnPopupGridGotKeyboardFocus">
                <StackPanel Margin="10,15,10,10">
                    <Grid>
                        <Grid x:Name="expandedInitializingContent" Style="{StaticResource expandedStatusGridGtyle}">
                            <Grid Style="{StaticResource pathContainerStyle}">
                                <Path Data="F1 M 12.998,6.278 C 14.367,6.545 15.607,7.183 16.602,8.106 L 11.160,8.382 L 14.037,11.235 L 22.242,11.054 L 22.350,2.847 L 19.473,0.000 L 19.253,5.095 C 17.730,3.706 15.843,2.744 13.760,2.341 C 7.613,1.150 1.404,4.790 0.000,12.046 L 4.391,12.097 C 5.160,8.120 9.021,5.511 12.998,6.278 Z">
                                    <Path.Fill>
                                        <RadialGradientBrush MappingMode="Absolute" GradientOrigin="313.146,-385.129" Center="313.146,-385.129" RadiusX="16.356" RadiusY="16.356">
                                            <RadialGradientBrush.GradientStops>
                                                <GradientStop Offset="0.00" Color="#ffffffff"/>
                                                <GradientStop Offset="0.36" Color="#ffffffff"/>
                                                <GradientStop Offset="0.53" Color="#ffffffff"/>
                                                <GradientStop Offset="0.73" Color="#ffffffff"/>
                                                <GradientStop Offset="0.94" Color="#ffffffff"/>
                                            </RadialGradientBrush.GradientStops>
                                            <RadialGradientBrush.Transform>
                                                <MatrixTransform Matrix="1.000,0.000,-0.000,-1.000,-295.639,-382.415" />
                                            </RadialGradientBrush.Transform>
                                        </RadialGradientBrush>
                                    </Path.Fill>
                                </Path>
                                <Path Data="F1 M 9.352,20.511 C 7.983,20.246 6.742,19.607 5.748,18.683 L 11.189,18.408 L 8.313,15.554 L 0.107,15.736 L 0.000,23.943 L 2.877,26.791 L 3.097,21.695 C 4.620,23.083 6.507,24.046 8.590,24.449 C 14.736,25.640 20.945,22.000 22.350,14.744 L 17.959,14.693 C 17.189,18.669 13.328,21.279 9.352,20.511 Z">
                                    <Path.Fill>
                                        <RadialGradientBrush MappingMode="Absolute" GradientOrigin="-658.202,2109.564" Center="-658.202,2109.564" RadiusX="16.357" RadiusY="16.357">
                                            <RadialGradientBrush.GradientStops>
                                                <GradientStop Offset="0.00" Color="#ffffffff"/>
                                                <GradientStop Offset="0.36" Color="#ffffffff"/>
                                                <GradientStop Offset="0.53" Color="#ffffffff"/>
                                                <GradientStop Offset="0.73" Color="#ffffffff"/>
                                                <GradientStop Offset="0.94" Color="#ffffffff"/>
                                            </RadialGradientBrush.GradientStops>
                                            <RadialGradientBrush.Transform>
                                                <MatrixTransform Matrix="-1.000,0.000,0.000,1.000,-653.360,-2085.489" />
                                            </RadialGradientBrush.Transform>
                                        </RadialGradientBrush>
                                    </Path.Fill>
                                </Path>
                            </Grid>
                        </Grid>
                        <Grid x:Name="expandedAllSetNotListeningContent" Style="{StaticResource expandedStatusGridGtyle}">
                            <Grid Style="{StaticResource pathContainerStyle}">
                                <Path Fill="#ffffffff" Data="F1 M 7.749,4.152 C 7.094,4.152 6.563,3.623 6.563,2.968 C 6.563,2.314 7.094,1.783 7.749,1.783 C 8.402,1.783 8.933,2.314 8.933,2.968 C 8.933,3.623 8.402,4.152 7.749,4.152 Z M 13.817,4.152 C 13.162,4.152 12.632,3.623 12.632,2.968 C 12.632,2.314 13.162,1.783 13.817,1.783 C 14.473,1.783 15.001,2.314 15.001,2.968 C 15.001,3.623 14.473,4.152 13.817,4.152 Z M 18.185,4.152 C 17.529,4.152 16.999,3.623 16.999,2.968 C 16.999,2.314 17.529,1.783 18.185,1.783 C 18.837,1.783 19.369,2.314 19.369,2.968 C 19.369,3.623 18.837,4.152 18.185,4.152 Z M 30.059,0.000 L 1.940,0.000 C 0.875,0.000 0.000,0.873 0.000,1.941 L 0.000,3.996 C 0.000,5.062 0.875,5.935 1.940,5.935 L 30.059,5.935 C 31.126,5.935 32.000,5.062 32.000,3.996 L 32.000,1.941 C 32.000,0.873 31.126,0.000 30.059,0.000 Z"/>
                                <Path Fill="#ffffffff" Data="F1 M 20.437,8.683 C 20.031,8.509 16.960,7.454 16.960,7.454 L 15.023,7.454 C 15.023,7.454 11.952,8.509 11.543,8.683 C 11.137,8.856 10.894,8.940 10.979,9.245 C 11.034,9.444 11.168,9.916 11.312,10.315 C 11.378,10.506 11.475,10.634 11.667,10.634 C 11.770,10.634 20.213,10.634 20.316,10.634 C 20.507,10.634 20.603,10.506 20.671,10.315 C 20.814,9.916 20.950,9.444 21.005,9.245 C 21.089,8.940 20.847,8.856 20.437,8.683 Z"/>
                            </Grid>
                        </Grid>
                        <Grid x:Name="expandedAllSetListeningContent" Style="{StaticResource expandedStatusGridGtyle}">
                            <Grid Style="{StaticResource pathContainerStyle}">
                                <Path Fill="#ffffffff" Data="F1 M 5.880,14.295 C 3.545,14.295 1.649,12.397 1.649,10.065 C 1.649,9.605 1.282,9.238 0.823,9.238 C 0.365,9.238 0.000,9.605 0.000,10.065 C 0.000,13.040 2.189,15.476 5.055,15.889 L 5.055,19.576 L 3.232,19.576 C 2.774,19.576 2.406,19.959 2.406,20.400 C 2.406,20.860 2.774,21.242 3.232,21.242 L 8.512,21.242 C 8.971,21.242 9.338,20.860 9.338,20.400 C 9.338,19.959 8.971,19.576 8.512,19.576 L 6.708,19.576 L 6.708,15.889 C 9.557,15.476 11.764,13.040 11.764,10.065 C 11.764,9.605 11.397,9.238 10.938,9.238 C 10.481,9.238 10.112,9.605 10.112,10.065 C 10.112,12.397 8.219,14.295 5.883,14.295 M 9.098,10.372 C 8.930,12.009 7.557,13.289 5.883,13.289 L 5.880,13.289 C 4.189,13.289 2.831,12.009 2.646,10.372 L 4.352,10.372 L 4.352,8.721 L 2.617,8.721 L 2.617,8.469 L 2.617,7.528 L 4.352,7.528 L 4.352,5.860 L 2.617,5.860 L 2.617,4.666 L 4.352,4.666 L 4.352,3.016 L 2.643,3.016 C 2.770,1.341 4.159,0.000 5.881,0.000 C 7.586,0.000 8.977,1.341 9.104,3.016 L 7.413,3.016 L 7.413,4.666 L 9.147,4.666 L 9.147,5.860 L 7.413,5.860 L 7.413,7.528 L 9.147,7.528 L 9.147,8.469 L 9.147,8.721 L 7.413,8.721 L 7.413,10.372 L 9.098,10.372 Z"/>
                            </Grid>
                        </Grid>
                        <Grid x:Name="expandedNoAvailableSensorsContent" Style="{StaticResource expandedStatusGridGtyle}">
                            <Grid Style="{StaticResource pathContainerStyle}">
                                <Path Fill="{StaticResource yellowErrorBrush}" Data="F1 M 40.361,13.834 C 39.777,14.163 39.422,14.781 39.422,15.440 L 39.418,16.161 L 37.582,16.161 L 37.582,15.440 C 37.582,14.143 38.295,12.919 39.419,12.243 C 40.042,11.917 40.434,11.288 40.434,10.583 C 40.434,9.571 39.584,8.723 38.549,8.723 C 37.536,8.723 36.686,9.571 36.686,10.583 L 36.686,10.804 L 34.846,10.804 L 34.846,10.583 C 34.846,8.549 36.513,6.884 38.549,6.884 C 40.609,6.884 42.275,8.549 42.275,10.583 C 42.275,11.926 41.541,13.163 40.361,13.834 Z M 39.342,19.073 C 39.102,19.311 38.820,19.409 38.500,19.409 C 38.181,19.409 37.899,19.311 37.682,19.073 C 37.443,18.856 37.323,18.577 37.323,18.261 C 37.323,17.941 37.443,17.658 37.682,17.418 C 37.899,17.204 38.182,17.084 38.500,17.084 C 38.820,17.084 39.102,17.204 39.340,17.418 C 39.559,17.659 39.679,17.942 39.679,18.261 C 39.679,18.575 39.559,18.856 39.342,19.073 Z M 38.549,0.000 L 25.561,21.253 L 38.549,21.253 L 51.561,21.253 L 38.549,0.000 Z"/>
                                <Path Fill="#ffffffff" Data="F1 M 19.267,14.549 C 18.572,14.549 18.002,13.983 18.002,13.287 C 18.002,12.591 18.572,12.038 19.267,12.038 C 19.947,12.038 20.516,12.591 20.516,13.287 C 20.516,13.983 19.947,14.549 19.267,14.549 Z M 14.638,14.549 C 13.943,14.549 13.374,13.983 13.374,13.287 C 13.374,12.591 13.943,12.038 14.638,12.038 C 15.334,12.038 15.887,12.591 15.887,13.287 C 15.887,13.983 15.334,14.549 14.638,14.549 Z M 8.204,14.549 C 7.508,14.549 6.955,13.983 6.955,13.287 C 6.955,12.591 7.508,12.038 8.204,12.038 C 8.898,12.038 9.467,12.591 9.467,13.287 C 9.467,13.983 8.898,14.549 8.204,14.549 Z M 2.050,10.145 C 0.923,10.145 0.000,11.067 0.000,12.196 L 0.000,14.378 C 0.000,15.504 0.923,16.427 2.050,16.427 L 26.598,16.427 L 30.443,10.145 L 2.050,10.145 Z"/>
                                <Path Fill="#ffffffff" Data="F1 M 21.646,19.340 C 21.218,19.155 17.968,18.038 17.968,18.038 L 15.905,18.038 C 15.905,18.038 12.656,19.155 12.228,19.340 C 11.800,19.528 11.536,19.618 11.627,19.939 C 11.692,20.149 11.829,20.649 11.988,21.070 C 12.048,21.272 12.151,21.415 12.353,21.415 C 12.461,21.415 21.413,21.415 21.521,21.415 C 21.723,21.415 21.825,21.272 21.901,21.070 C 22.044,20.649 22.196,20.149 22.247,19.939 C 22.338,19.618 22.074,19.528 21.646,19.340 Z"/>
                            </Grid>
                        </Grid>
                        <Grid x:Name="expandedErrorContent" Style="{StaticResource expandedStatusGridGtyle}">
                            <Grid Style="{StaticResource pathContainerStyle}">
                                <Path Fill="{StaticResource yellowErrorBrush}" Data="F1 M 38.553,18.767 C 38.147,18.767 37.784,18.634 37.506,18.394 C 37.256,18.126 37.116,17.819 37.116,17.473 C 37.116,17.079 37.256,16.769 37.540,16.519 C 37.795,16.288 38.157,16.165 38.553,16.165 C 38.981,16.165 39.321,16.291 39.594,16.544 C 39.869,16.774 40.004,17.083 40.004,17.473 C 40.004,17.831 39.874,18.139 39.602,18.398 C 39.356,18.637 38.993,18.767 38.553,18.767 Z M 39.864,7.252 L 39.556,15.069 L 37.540,15.069 L 37.246,7.252 L 39.864,7.252 Z M 38.549,0.000 L 25.561,21.254 L 38.549,21.254 L 51.561,21.254 L 38.549,0.000 Z"/>
                                <Path Fill="#ffffffff" Data="F1 M 19.267,14.550 C 18.572,14.550 18.002,13.983 18.002,13.287 C 18.002,12.592 18.572,12.038 19.267,12.038 C 19.947,12.038 20.516,12.592 20.516,13.287 C 20.516,13.983 19.947,14.550 19.267,14.550 Z M 14.638,14.550 C 13.943,14.550 13.374,13.983 13.374,13.287 C 13.374,12.592 13.943,12.038 14.638,12.038 C 15.334,12.038 15.887,12.592 15.887,13.287 C 15.887,13.983 15.334,14.550 14.638,14.550 Z M 8.204,14.550 C 7.508,14.550 6.955,13.983 6.955,13.287 C 6.955,12.592 7.508,12.038 8.204,12.038 C 8.898,12.038 9.467,12.592 9.467,13.287 C 9.467,13.983 8.898,14.550 8.204,14.550 Z M 2.050,10.145 C 0.923,10.145 0.000,11.067 0.000,12.196 L 0.000,14.379 C 0.000,15.505 0.923,16.428 2.050,16.428 L 26.598,16.428 L 30.443,10.145 L 2.050,10.145 Z"/>
                                <Path Fill="#ffffffff" Data="F1 M 21.646,19.341 C 21.218,19.155 17.968,18.038 17.968,18.038 L 15.905,18.038 C 15.905,18.038 12.656,19.155 12.228,19.341 C 11.800,19.528 11.536,19.618 11.627,19.939 C 11.692,20.149 11.829,20.649 11.988,21.070 C 12.048,21.272 12.151,21.415 12.353,21.415 C 12.461,21.415 21.413,21.415 21.521,21.415 C 21.723,21.415 21.825,21.272 21.901,21.070 C 22.044,20.649 22.196,20.149 22.247,19.939 C 22.338,19.618 22.074,19.528 21.646,19.341 Z"/>
                            </Grid>
                        </Grid>
                    </Grid>
                    <TextBlock Margin="0,20,0,0" Foreground="White" 
                            VerticalAlignment="Center" HorizontalAlignment="Center" 
                            FontSize="14.667" 
                            Name="MessageTextBlock" TextWrapping="WrapWithOverflow"
                            Text="{Binding Path=Message}" />
                    <Grid>
                        <TextBlock HorizontalAlignment="Left" VerticalAlignment="Bottom" Visibility="{Binding Path=MoreInformationVisibility}" FontSize="10.667">
                            <Hyperlink Foreground="{StaticResource yellowErrorBrush}" Cursor="Hand" Name="TellMeMoreLink" RequestNavigate="TellMeMoreLinkRequestNavigate" ToolTip="{Binding Path=MoreInformation}" NavigateUri="{Binding MoreInformationUri}">Help</Hyperlink>
                        </TextBlock>
                        <Button Style="{StaticResource RefreshButtonStyle}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Command="{Binding RetryCommand}">_Refresh</Button>
                    </Grid>
                </StackPanel>
            </Grid>
        </Popup>
    </Grid>
</UserControl>
